# -*- coding: utf-8 -*-
import logging
from odoo import models, fields, api, _


class ZfyProductTemplate(models.Model):
    _inherit = "product.template"

    aux_uom_id = fields.Many2one('product.uom', u'辅助单位',store=True)
    aux_radio = fields.Float(u'换算率', digits=(16, 4),store=True)


# class ZfyProductProduct(models.Model):
#     _inherit = "product.product"
#
#     aux_uom = fields.Many2one('product.uom', u'辅助单位',releted='product_tmpl_id.aux_uom',store=True,readonly=True)
#     aux_radio = fields.Float(u'换算率', digits=(16, 4), releted='product_tmpl_id.aux_uom',store=True,readonly=True)
